package com.wgts.wgts.mvp.model.imp;

import com.wgts.wgts.mvp.model.IOtherFragmentModel;
import com.wgts.wgts.mvp.presenter.IOtherFragmentPresenter;
import com.wgts.wgts.netmodle.HttpResultSubscriber;
import com.wgts.wgts.netmodle.NetService;
import com.wgts.wgts.netmodle.req.AppModleRequest;
import com.wgts.wgts.netmodle.req.SearchShopListRequest;
import com.wgts.wgts.netmodle.resp.AppModleEntity;
import com.wgts.wgts.netmodle.resp.ClassBannerEntity;
import com.wgts.wgts.netmodle.resp.GoodProductEntity;
import com.wgts.wgts.netmodle.resp.SearchShopResultEntity;

import java.util.List;

public class OtherFragmentModel implements IOtherFragmentModel {

    private NetService netService;

    public OtherFragmentModel(NetService netService) {
        this.netService = netService;
    }

    @Override
    public void initHead(AppModleRequest request, HttpResultSubscriber<List<AppModleEntity>> subscriber) {
        netService.appModle(request, subscriber);
    }

    @Override
    public void goodProduct(Integer typeId, Integer pageIndex, Integer pageSize, HttpResultSubscriber<GoodProductEntity> subscriber) {
        netService.goodProduct(typeId, pageIndex, pageSize, subscriber);
    }

    @Override
    public void initBanner(Integer typeId, HttpResultSubscriber<List<ClassBannerEntity>> subscriber) {
        netService.classBanner(typeId, subscriber);
    }


}
